{extend name="layout" /}
{block name="body"}
  <div class="row">
          
    <div class="col-lg-12">
      <div class="card">
        <ul class="nav nav-tabs page-tabs pt-2 pl-3 pr-3">
          {volist name="Think.config.app.site_setting.config_group" id="group"}
          <li  class="nav-item">
            <a href="{:url('?gname='.$key)}" class="nav-link {eq name="gname" value="$key"} active{/eq}">{$group}</a>
          </li>
          {/volist}
        </ul>
        <div class="tab-content">
          <div class="tab-pane active">
            
            <form action="{:url('?gname='.$gname)}" method="post" name="edit-form" class="row edit-form">
              {notempty name="form_items"}
              {volist name="form_items" id="form"}
                {switch name="form.type"}
                  {case value="text"}
                    {// 单行文本 }
                    {include file="../application/admin/view/form/text.html" type='' /}
                  {/case}
                  {case value="textarea|array"}
                    {// 多行文本|数组 }
                    {include file="../application/admin/view/form/textarea.html" type='' /}
                  {/case}
                  {case value="checkbox"}
                    {// 复选框 }
                    {include file="../application/admin/view/form/checkbox.html" type='' /}
                  {/case}
                  {case value="radio"}
                    {// 单选按钮 }
                    {include file="../application/admin/view/form/radio.html" type='' /}
                  {/case}
                  {case value="switch"}
                    {// 开关 }
                    {include file="../application/admin/view/form/switch.html" type='' /}
                  {/case}
                  {case value="select"}
                    {// 下拉框 }
                    {include file="../application/admin/view/form/select.html" type='' /}
                  {/case}
                  {case value="hidden"}
                    {// 隐藏域 }
                    {include file="../application/admin/view/form/hidden.html" type='' /}
                  {/case}
                  {case value="date"}
                    {// 日期 }
                    {include file="../application/admin/view/form/date.html" type='' /}
                  {/case}
                  {case value="daterange"}
                    {// 日期范围 }
                    {include file="../application/admin/view/form/daterange.html" type='' /}
                  {/case}
                  {case value="datetime"}
                    {// 日期+时间 }
                    {include file="../application/admin/view/form/datetime.html" type='' /}
                  {/case}
                  {case value="time"}
                    {// 时间 }
                    {include file="../application/admin/view/form/time.html" type='' /}
                  {/case}
                  {case value="image"}
                    {// 单张图片 }
                    {include file="../application/admin/view/form/image.html" type='' /}
                  {/case}
                  {case value="images"}
                    {// 多张图片 }
                    {include file="../application/admin/view/form/images.html" type='' /}
                  {/case}
                  {case value="jcrop"}
                    {// 裁剪图片 }
                    {include file="../application/admin/view/form/jcrop.html" type='' /}
                  {/case}
                  {case value="file"}
                    {// 单个附件 }
                    {include file="../application/admin/view/form/file.html" type='' /}
                  {/case}
                  {case value="files"}
                    {// 多个附件 }
                    {include file="../application/admin/view/form/files.html" type='' /}
                  {/case}
                  {case value="password"}
                    {// 密码框 }
                    {include file="../application/admin/view/form/password.html" type='' /}
                  {/case}
                  {case value="editormd"}
                    {// editormd 编辑器 }
                    {include file="../application/admin/view/form/editormd.html" type='' /}
                  {/case}
                  {case value="ueditor"}
                    {// UEditor 编辑器 }
                    {include file="../application/admin/view/form/ueditor.html" type='' /}
                  {/case}
                  {case value="wangeditor"}
                    {// wangeditor 编辑器 }
                    {include file="../application/admin/view/form/wangeditor.html" type='' /}
                  {/case}
                  {case value="ckeditor"}
                    {// ckeditor 编辑器 }
                    {include file="../application/admin/view/form/ckeditor.html" type='' /}
                  {/case}
                  {case value="colorpicker"}
                    {// 取色器 }
                    {include file="../application/admin/view/form/colorpicker.html" type='' /}
                  {/case}
                  {case value="tags"}
                    {// 标签 }
                    {include file="../application/admin/view/form/tags.html" type='' /}
                  {/case}
                  {case value="fonticonpicker"}
                    {// 图标选择器 }
                    {include file="../application/admin/view/form/fonticonpicker.html" type='' /}
                  {/case}
                {/switch}
              {/volist}
              {/notempty}
              {notempty name="form_items"}
              <div class="form-group col-md-12">
                <button type="submit" class="btn btn-primary m-r-5 ajax-post" target-form="edit-form">确 定</button>
                <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
              </div>
              {/notempty}
            </form>
            
          </div>
        </div>

      </div>
    </div>
        
  </div>
{/block}
{block name="otherjs"}
{include file="../application/admin/view/form/formjs.html" /}
{/block}